<%@ page language="java" import="com.alibaba.fastjson.JSONObject" pageEncoding="UTF-8" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.BaseBean" %>
<%@ page import="weaver.general.Util" %>
<%--获取银行信息接口--%>
<%
    BaseBean baseBean = new BaseBean();
    String yxgj = Util.null2String(request.getParameter("yxgj"));
    String yxzhdmll = Util.null2String(request.getParameter("yxzhdmll"));
    String bghyxbzlll = Util.null2String(request.getParameter("bghyxbzlll"));
    JSONObject dataJson = new JSONObject();
    try {
        RecordSet rs = new RecordSet();
        if (!"".equals(yxgj)) {
            rs.executeQuery("select gjdm from uf_zhlxgjtz where id=?", yxgj);
            rs.next();
            String gjdm = Util.null2String(rs.getString("gjdm"));
            dataJson.put("gjdm", gjdm);
        }
        if (!"".equals(yxzhdmll)) {
            rs.executeQuery("select yxdm from uf_sd_bk_jm where id=?", yxzhdmll);
            rs.next();
            String yxdm = Util.null2String(rs.getString("yxdm"));
            dataJson.put("yxdm", yxdm);
        }
        if (!"".equals(bghyxbzlll)) {
            rs.executeQuery("select bm from uf_bzb where id=?", bghyxbzlll);
            rs.next();
            String bm = Util.null2String(rs.getString("bm"));
            dataJson.put("bm", bm);
        }
    } catch (Exception e) {
        e.printStackTrace();
    }
    baseBean.writeLog(">>>>>getGysYhxx_Ajax>>>>>dataJson=" + dataJson);
    out.print(dataJson.toJSONString());
%>




